
fn = FILE_SEARCH('./emaf_paper/save_files/morph_distances_a*.sav',count=nfn)


wc = fltarr(nfn)
beta = fltarr(nfn)

FOR i=0,nfn-1 DO BEGIN
   
   
   restore,fn[i]
   
   beta[i] = float(strmid(fn[i],strpos(fn[i],'_a')+2,4))
   
   ;; cgPlot,charsize=1.0,dml[*,1]>dml[*,2],pchoo,psym=16,symsize=0.5,$
   ;;        tit=fn[i],xtit='Larger d!dML!n Bar [kpc]',$
   ;;        ytit='P!dchoose!n',xr=[0,15],$
   ;;        yr=[0.45,1.05],/yst,/xst
   
   ;; vline,/h,0.78,color='Orchid',thick=2
   
   ind = where(pchoo GE 0.78, n78)
   wc[i] = float(n78); / float(n_elements(pchoo))
   
   
ENDFOR

plot,beta,wc,xtit=cgSymbol('beta'),ytit='Number Well-Constrained',$
     yr=[0,820],/yst

END
